/*
** xbind.c for zappy in /home/morgan_t/Documents/svn-for-my-proj/zappy/common
** 
** Made by thomas morgant
** Login   <morgan_t@epitech.net>
** 
** Started on  Mon Jul  2 13:12:09 2012 thomas morgant
** Last update Thu Jul  5 12:38:28 2012 thomas morgant
*/

#include "common.h"

void	xbind(int s, struct sockaddr_in addr, socklen_t addrlen)
{
  if (bind(s, (struct sockaddr *)&addr, addrlen) == -1)
    {
      perror("bind");
      exit(EXIT_FAILURE);
    }
}
